<admintpl file="header" />
</head>
<body>
<div class="wrap">
	<empty name="invite_id">
	<ul class="nav nav-tabs">
		<li class="active"><a>提现申请</a></li>
	</ul>
	<form class="well form-search" method="post" action="{:U('ExtractMoney/index')}">
		姓名：
		<input type="text" name="name" style="width: 100px;" value="{:I('request.name/s','')}" placeholder="请输入姓名">
		打款状态:
		{$state}
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:U('ExtractMoney/index')}">清空</a>
	</form>
	</empty>

	<form method="post" class="js-ajax-form">
		<table class="table table-hover table-bordered">
			<thead>
			<tr>
				<th align="center">ID</th>
				<th>姓名</th>
				<th>申请时间</th>
				<th>手机号码</th>
				<th>提现金额</th>
				<th>到账银行</th>
				<th>卡号</th>
				<th>状态</th>
				<empty name="invite_id">
				<th align="center">操作</th>
				</empty>
			</tr>
			</thead>
			<tbody>
			<foreach name="list" item="vo">
				<tr>
					<td align="center">{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.created_time|date="Y-m-d",###}</td>
					<td>
						{$vo.mobile}
					</td>
					<td>{$vo.money}</td>
					<td>
						{:C('BANK_TYPE')[$vo['bank_id']]['dict_text']}
					</td>
					<td>
						{$vo.bank_number}
					</td>
					<td>
						{:C('GIVE_MONENY')[$vo['state']]['dict_text']}
					</td>
					<empty name="invite_id">
					<td align="center">
						<switch name="vo.state">
							<case value="1">
								<a href="javascript:parent.open_iframe_dialog('{:U('ExtractMoney/index',array('invite_id'=>$vo['invite_id']))}','提现历史',{})">提现历史</a>
								<a href="{:U('ExtractMoney/changer_state',array('id'=>$vo['id'],'state'=>2,'name'=>$vo['name'],'money'=>$vo['money']))}" data-msg="你确定设置为已打款吗？" class="js-ajax-dialog-btn">已打款</a>
								<a href="{:U('ExtractMoney/changer_state',array('id'=>$vo['id'],'state'=>3,'name'=>$vo['name'],'money'=>$vo['money']))}" data-msg="你确定设置为不打款吗？" class="js-ajax-dialog-btn">不打款</a>
							</case>
							<case value="2">
								<a href="javascript:parent.open_iframe_dialog('{:U('ExtractMoney/index',array('invite_id'=>$vo['invite_id']))}','提现历史',{})">提现历史</a>
							</case>
							<case value="3">
								<a href="javascript:parent.open_iframe_dialog('{:U('ExtractMoney/index',array('invite_id'=>$vo['invite_id']))}','提现历史',{})">提现历史</a>
							</case>
							<default />
						</switch>
					</td>
					</empty>
				</tr>
			</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>